﻿<%@ Page Title="Opret Køb" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="purchaseCreate.aspx.cs" Inherits="UCNKompetenceBors.Exchange.purchaseCreate" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="purchaseCreateContent" class="contentBoxLarge floatLeft">

        <div id="purchaseCreateBox" class="purchaseSaleCreateBox floatLeft">
            <div class="inputFormLarge floatLeft">
                <asp:Panel ID="panCreatePurchaseForm" runat="server">
                    <div class="inputFormLargeLeft floatLeft">

                        <div class="inputFormLargeRow contentTitle">
                            <asp:Label ID="lblCreatePurchaseHeader" runat="server" Text="Opret et køb"></asp:Label>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="inputFormLargeCellLeft floatLeft">
                                <asp:Label ID="lblCreatePurchaseCategory" runat="server" Text="Kategori:"></asp:Label>
                            </div>
                            <div class="inputFormLargeCellRight floatRight">
                                <asp:DropDownList ID="ddlCreatePurchaseCategory" runat="server"></asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvalCreatePurchaseCategory" runat="server" ValidationGroup="CreatePurchase" InitialValue="Vælg Kategori" ErrorMessage="Kategori skal vælges" ToolTip="Kategori skal vælges" ControlToValidate="ddlCreatePurchaseCategory" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="inputFormLargeCellLeft floatLeft">
                                <asp:Label ID="lblCreatePurchaseTitle" runat="server" Text="Titel:"></asp:Label>
                            </div>
                            <div class="inputFormLargeCellRight floatRight">
                                <asp:TextBox ID="txtCreatePurchaseTitle" runat="server" Width="450px" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvalCreatePurchaseTitle" runat="server" ValidationGroup="CreatePurchase" ErrorMessage="Titel skal udfyldes" ToolTip="Titel skal udfyldes" ControlToValidate="txtCreatePurchaseTitle" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="floatLeft">
                                <asp:Label ID="lblCreatePurchaseDescription" runat="server" Text="Beskrivelse:"></asp:Label>
                                <br />
                                <br />
                                <CKEditor:CKEditorControl ID="ckeditorCreatePurchaseDescription" BasePath="/ckeditor/" runat="server"></CKEditor:CKEditorControl>
                            </div>
                            <div class="inputFormEditorValidation floatRight">
                                <asp:RequiredFieldValidator ID="rfvalCreatePurchaseDescription" runat="server" ValidationGroup="CreatePurchase" ErrorMessage="Beskrivelse skal udfyldes" ToolTip="Beskrivelse skal udfyldes" ControlToValidate="ckeditorCreatePurchaseDescription" Display="Dynamic" Text="*" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="inputFormLargeRow floatLeft">
                            <div class="inputFormButtonMargin floatRight">
                                <asp:Button ID="btnCreatePurchase" runat="server" Text="Opret Køb" ValidationGroup="CreatePurchase" CssClass="button" OnClick="btnCreatePurchase_Click" />
                            </div>
                        </div>
                    </div>
                    <div class="inputFormLargeRight floatRight">
                        <asp:ValidationSummary ID="valsumCreatePurchase" runat="server" ForeColor="Red" HeaderText="The following errors were detected:" ValidationGroup="CreatePurchase" />
                    </div>
                </asp:Panel>

                <asp:Label ID="lblCreatePurchaseSuccess" runat="server" Text="Du har nu oprettet et køb"></asp:Label>
            </div>
        </div>

    </div>
</asp:Content>
